﻿@using Model
@model List<UserAccount>
    @{
        var grid = new WebGrid(
            source: Model,
            canSort: true,
            canPage: true,
            ajaxUpdateContainerId: "myGrid",
            rowsPerPage: 10);
    }
    @grid.GetHtml(
    htmlAttributes: new { id = "gridSampleClass" },
    tableStyle: "grid",
    headerStyle: "header",
    rowStyle: "row",
    footerStyle: "footer",
    alternatingRowStyle: "row",
    columns: grid.Columns(
            grid.Column("Login", "Login", style: "textCol"),
        grid.Column("Email", "Email", style: "textCol"),
        grid.Column("Role", "Role", style: "textCol")
    ))